package com.miku.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miku.model.entity.Chart;

import java.util.List;
import java.util.Map;

/**
* @author ThinkBook
* @description 针对表【chart(图表信息表)】的数据库操作Mapper
* @createDate 2024-07-02 19:16:53
* @Entity generator.domain.Chart
*/
public interface ChartMapper extends BaseMapper<Chart> {

    /**
     * 动态查询
     * 需要防止sql注入
     * @param querySql
     * @return
     */
    List<Map<String,Object>> queryChartData(String querySql);

    /**
     * 动态创建表
     * 需要防止sql注入
     * @param createSql
     * @return
     */
    boolean creareTable(String createSql);
}




